package com.sls.sys.dao;

import java.util.List;

import com.sls.page.Pagination;
import com.sls.sys.pojo.PermissionInfo;
import com.sls.sys.pojo.PermissionInfoVO;
import com.sls.sys.querybean.PermissionQuery;

public interface PermissionDAO {

	public List<PermissionInfoVO> queryAll();
	/**
	 * 根据serviceCode查权限信息
	 * @param serviceCode
	 * @return
	 */
	public PermissionInfo queryInfoByServiceCode(String serviceCode);

	public Pagination<PermissionInfoVO> queryPermission(
			PermissionQuery permissionQuery);

	public void delete(String serviceCode);
	public void insertPermission(PermissionInfoVO p);
	public void updatePermission(PermissionInfoVO p);
}
